how angular works behind the scene